package com.bank.annotation;

import com.bank.validator.AccountTypeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Constraint(validatedBy = {AccountTypeValidator.class})
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidAccountType {
    String message() default "账户类型无效";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
